package com.hgkj.common.core.exception;

import com.hgkj.common.core.constant.HttpStatusConstant;

/**
 * 业务异常
 */
public class ServiceException extends RuntimeException {

    private Integer code;

    private String message;

    public ServiceException() {
    }

    public ServiceException(String message) {
        this.code = HttpStatusConstant.ERROR;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
